package org.jeecg.modules.purchase.service;

import org.jeecg.modules.purchase.entity.PurchaseStockInGoods;
import org.jeecg.modules.purchase.entity.PurchaseStockIn;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 入库记录
 * @Author: jeecg-boot
 * @Date:   2022-11-16
 * @Version: V1.0
 */
public interface IPurchaseStockInService extends IService<PurchaseStockIn> {

	/**
	 * 添加一对多
	 *
	 * @param purchaseStockIn
	 * @param purchaseStockInGoodsList
	 */
	public void saveMain(PurchaseStockIn purchaseStockIn,List<PurchaseStockInGoods> purchaseStockInGoodsList) ;
	
	/**
	 * 修改一对多
	 *
	 * @param purchaseStockIn
	 * @param purchaseStockInGoodsList
	 */
	public void updateMain(PurchaseStockIn purchaseStockIn,List<PurchaseStockInGoods> purchaseStockInGoodsList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	void saveMainTemp(PurchaseStockIn po, List<PurchaseStockInGoods> purchaseStockInGoodsList);
}
